package com.nanhang.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author zzy
 * @since 2025-01-07
 */
@Data
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    // 得保证是主键
    @TableId(value = "sid")
    private Integer sid;

    private String sname;

    private String sex;

    private Integer age;

    private String addr;

    private Integer cid;

    @TableField(exist = false)  // 不一定存在
    private String cname;  // 班级名称

}
